package commands.gameCommand
{
	import commands.ICommand;

	public class CommandFactory
	{
		private static var _type:String = NOMAL;
		public static const NOMAL:String = "nomal";
		public static const UNDOABLE:String = "undoable";
		public static const REDOABLE:String = "redoable";
		public function CommandFactory()
		{
		}
		public static function set type(value:String):void{
			_type = value;
		}
		public static function getGamePlayCommand(data:PieceData):ICommand{
			if(_type == NOMAL){
				return new GamePlayerCommand(data);
			}
			return null;
		}
		
	}
}